#!/bin/bash

if [ $# -ne 5 ];
then
	echo The number of arguments is incorrect.
	exit 1
fi

MACH_ID=$1
FROM_DATE=$2
TO_DATE=$3
LIMIT_SIZE=$4
#URL=$5
URL="http://ckj.ronghekj.cn/api/uploadLogs"

curl -X POST -F "id=$MACH_ID" -F "file=@/tmp/rh530.log" $URL
